package com.hq.hotl.controller;

import com.hq.hotl.dao.FloorDao;
import com.hq.hotl.pojo.House;
import com.hq.hotl.service.FloorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class FloorController {
    @Autowired
    private FloorService floorService;

    @RequestMapping("/floorQuery")
    public String floorQuery(Integer floorid , ModelMap modelMap){
        List house = floorService.floorQueryOne(floorid);
        modelMap.put("house",house);
        return "list2";
    }
}
